#include "winBase.h"


winBase::winBase() {



    sfWindowMap = load_bitmap("GFX/mapWindow.bmp", NULL);
    if(!sfWindowMap)  {
       std::cout << "winBase(): Could not load [GFX/mapWindow.bmp]" << std::endl;
       exit(2);
    }




    int i, e;
    for(i=0;i<=4;i++) {
        for(e=0;e<=20;e++) {
            posWindow[i][e].x = 1+(e*16);
            posWindow[i][e].y = 1+(i*16);
            posWindow[i][e].w = 15;
            posWindow[i][e].h = 15;
        }
        posWindow[i][9].w = 47;

        posWindow[i][10].x = 193;
        posWindow[i][10].w = 15;

        // Button
        posWindow[i][11].x = 218;   // left part
        posWindow[i][11].w = 14;
        posWindow[i][12].x = 234;   // mittle part
        posWindow[i][12].w = 14;
        posWindow[i][13].x = 250;   // right part
        posWindow[i][13].w = 14;

        // edit
        posWindow[i][14].x = 209;   // left part
        posWindow[i][14].w = 2;
        posWindow[i][15].x = 212;   // mittle part
        posWindow[i][15].w = 2;
        posWindow[i][16].x = 215;   // right part
        posWindow[i][16].w = 2;


        // text field
        posWindow[i][17].x = 266;   // content part
        posWindow[i][17].w = 1;
        posWindow[i][17].h = 1;
        posWindow[i][18].x = 268;   // frame part
        posWindow[i][18].w = 1;
        posWindow[i][18].h = 1;

    }

}
